/*
 * MyEvent.h
 *
 *  Created on: 19.02.2011
 *      Author: ed
 */

#ifndef MYEVENT_H_
#define MYEVENT_H_
#include "globals.hh"
#include "TrackerSD.hh"
#include "TObject.h"
class TrackerSD;
class MyEvent
{
public:
	MyEvent(G4int NParticlesPerEvent,G4double SphereRadius,G4double PhotonEnergy,G4double LAbs,G4double LSc);
	inline G4int GetNParticlesPerEvent() const {return nParticlesPerEvent;}
	inline G4double GetSphereRadius()  const {return sphereRadius;}
	inline G4double GetPhotonEnergy() const {return photonEnergy;}
	inline G4double GetAbsorptionLength() const {return lAbs;}
	inline G4double GetScintilationLength()const {return lSc;}
	inline G4int GetNOutPhoton() const {return nOutPhoto;}
	inline G4double GetLightOutput()
	{
		if(nParticlesPerEvent)
			return (double)nOutPhoto/(double)nParticlesPerEvent;
		return .0;
	}
	inline G4int GetNCollisions(){return nCollisions;}
	inline void SetNParticlesPerEvent(G4int ppe)
	{
		nParticlesPerEvent = ppe;
	}
	inline void SetNCollision(G4int NCollisions){nCollisions = NCollisions;}
	friend class TrackerSD;
	virtual ~MyEvent();
private:
	G4int nParticlesPerEvent,nOutPhoto;
	G4double sphereRadius,lAbs,lSc;
	G4int nCollisions;
	G4double photonEnergy;

};

#endif /* MYEVENT_H_ */
